<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCashesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cash', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('前台用户id');
            $table->float('money',10,2)->default(0)->comment('提现申请的金额');
            $table->tinyInteger('status')->default(0)->comment('0-提现未处理  1-提现已处理');
            $table->tinyInteger('get_cash_status')->default(0)->comment('到款状态 0-未到款  1-已到款');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cash');
    }
}
